package com.chen.thread.mapper;

import com.chen.thread.dto.User2;
import com.chen.thread.dto.User3;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface User3Mapper {

//    /*将user2部分字段复制到user3表中*/        不能这样直接用sql复制
//    public int insert();

    /*将查询到的数据插入到user3中   普通方法*/
    public int insert(User3 user);

    /*批量将数据插入到user3中*/
    public int insertForeach(List<User2> list);
    /*清空user3表*/
    public int delete();
}
